<?php

/**
 * installer.xml loader class
 *
 * class to load and interface with installer.xml
 *
 * PHP version 5
 *
 * LICENSE: This file is part of PHP Web Application Installer also know as PWAI.
 * PWAI is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * PWAI is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KarambitKS.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @author     Michael Cummings <mgcummings@yahoo.com>
 * @author     Stephen Gulickk <stephenmg12@gmail.com>
 * @copyright  2009 (C) Michael Cummings and Stephen Gulick
 * @license    http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0
 * @package    pwai
 * @version    SVN: $Id$
 * @link       http://code.google.com/p/pwai/
 */


/**
 * xmlLoader
 * 
 * @package pwai
 * @author Stephen Gulick
 * @copyright 2009
 * @version $Id$
 * @access public
 */
class xmlLoader {
    /**
     * @var SimpleXML object
     */    
    protected $xml;
    
   /**
    * xmlLoader::__construct()
    * 
    * @return void
    */
   public function __construct() {
        //load installer.xml into simpleXML object $this->xml
        $this->xml=simplexml_load_file(PWAI_INSTALLER_BASE.'installer.xml');   
   }
   
   public function dumpXml() {
        echo"<pre>";
        print_r($this->xml);
        echo"</pre>"; 
   }
} // End class xmlLoader


?>